package com.cheer.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;


/**
 * @author cheer
 */
@Data
@Accessors(chain = true)
@ApiModel
public class OaTaskInfoVO {

    private Integer credit;

    @ApiModelProperty("任务情况 -> 今日登陆 本期学习 往期学习  精神礼赞  阅读文章  视听作品")
    private List<Boolean> finishList;

    public Boolean allTaskIsFinished(){
        List<Boolean> finishList = this.finishList;
        for (int i = 0; i <finishList.size(); i++) {
            if(finishList.get(i) == false){
                return false;
            }
        }
        return true;
    }

}
